//
//  Book.m
//  HomeWork 03 - NSString NSArray NSMutableArray
//
//  Created by dllo on 16/7/6.
//  Copyright © 2016年 dllo. All rights reserved.
//

#import "Book.h"

@implementation Book
- (instancetype)initWithName:(NSString *)name price:(NSString *)price {
    self = [super init];
    if (self) {
        _name = name;
        _price = price;
    }
    return self;
}
+ (instancetype)bookWithName:(NSString *)name price:(NSString *)price {
    return [[Book alloc]initWithName:name price:price];
}
@end
